{#include main fluid=true}
{#style}
.annotation {
color: gray;
font-style: italic;
}
span.larger-badge {
font-size: 0.9em;
}
span.app-class {
cursor:pointer;
color:blue;
text-decoration:underline;
}

{/style}

{#script}
$(document).ready(function(){
if (!ideKnown()) {
return;
}
$(".class-candidate").each(function() {
var className = $(this).text();
if (appClassLocation(className)) {
$(this).addClass("app-class");
}
});

$(".app-class").on("click", function() {
openInIDE($(this).text());
});
});
{/script}

{#title}REST Client classes{/title}
{#body}
<table class="table table-striped">
    <thead class="thead-dark">
    <tr>
        <th scope="col">#</th>
        <th scope="col">Client interface</th>
        <th scope="col">Is a CDI bean (injectable with @RestClient)</th>
        <th scope="col">Config prefix</th>
    </tr>
    </thead>
    <tbody>
    {#for client in info:devRestClients.clientData.clients}
    <tr>
        <td>{client_count}.</td>
        <td>
            <span class="class-candidate">{client.interfaceClass}</span>
        </td>
        <td>
            <i>{client.isBean}</i>
        </td>
        <td>
            {client.configKey}
        </td>
        {/for}
    </tbody>
</table>
{/body}
{/include}
